<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
<title>货物配送系统</title>
<link rel="stylesheet" type="text/css"
	href="../../css/readerTyper.css?param=Math.random()" />
<style type="text/css">
#p {
	margin: 20px 0px 0px 0px;
	text-align: left;
	color: #1166AA;
}
</style>
</head>
<body style="font-size: 20px">
	<%@ include file="navigation.jsp"%>
	<div id="content">
		<p id="p">当前位置：车辆管理&gt; 车辆档案管理 &gt;&gt;</p>
		<div align="left">
			<input id="button" type="button"
				onclick="window.location='/toaddcar.do'"
				value="添加车辆信息">
		</div>
		<div>
			<table border="1" cellpadding="0" cellspacing="0">
				<tr align="center" bgcolor="#98d6d2";>
					<td class="t1">车牌号</td>
					<td class="t1">车辆类型</td>
					<td class="t1">当前装载量</td>
					<td class="t1">最近停靠站</td>
					<td class="t1">当前状态</td>
					<td class="t1">新增时间</td>
					<td class="t1">修改时间</td>
					<td class="t1">修改</td>
					<td class="t1">删除</td>
				</tr>
				<c:forEach items="${list}" var="car">
					<tr>
						<td class="t1">${car.carId}</td>
						<td class="t1">${car.carType}</td>
						<td class="t1">${car.carCurrent}</td>
						<td class="t1">${car.location}</td>
						<td class="t1">${car.status}</td>
						<td class="t1"><fmt:formatDate value="${car.createTime}"
								pattern="yyyy-MM-dd" /></td>
						<td class="t1"><fmt:formatDate value="${car.updateTime}"
								pattern="yyyy-MM-dd" /></td>
						<td class="t1"><a
							href="/toupdcar.do?carId=${car.carId}">修改</a></td>
						<td class="t1"><a
							href="/delcar.do?carId=${car.carId}"
							onclick="return confirm('确定删除${car.carId}吗?');">删除</a></td>
					</tr>
				</c:forEach>
			</table>

		</div>
</body>
</html>